home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Graphics / include / rcpolygon_3d.h < prev    next >
Encoding:
Text File  |  1995-03-26  |  1.5 KB  |  33 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    rcpolygon.h
  3. //    Date:                    9/23/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains the class definition for a reference
  7. //                                counted polygon.
  8. //
  9. //------------------------------------------------------------------------------
  10.  
  11. #include "polygon_3d.h"
  12.  
  13. #ifndef    RCPOLYGON
  14. #define    RCPOLYGON
  15.  
  16. //------------------------------------------------------------------------------
  17. //    classes
  18. //------------------------------------------------------------------------------
  19. class    rcpolygon : public polygon                                                                                                //    3 dimensional reference counted polygon class
  20. {                                                                                                                                                                //    begin polygon class definition
  21.     friend    class    polyptr;                                                                                                                //    polyptr is my friend
  22.     private:                                                                                                                                            //    members internal to this class only
  23.     protected:                                                                                                                                        //    members internal to this class hierarchy
  24.                 uchar        ref_count;                                                                                                            //    the number of references to this object
  25.     public:                                                                                                                                                //    members available externally
  26.                 rcpolygon (point_3d *buffer, uchar count, va_list pts);                                    //    normal constructor
  27.                 rcpolygon (point_3d *buffer, uchar count);                                                            //    normal constructor
  28. virtual    ~rcpolygon (void);                                                                                                            //    destructor
  29. };                                                                                                                                                            //    end polygon class definition
  30.  
  31. //------------------------------------------------------------------------------
  32.  
  33. #endif    //RCPOLYGON